package com.xhwl.data.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xhwl.common.pojo.cent.sdata.Industry;
import com.xhwl.data.pojo.vo.IndustryVO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @description:
 * @author: 平台服务
 * @create: 2020-11-25
 **/
@RestController
public interface IIndustryService extends IService<Industry> {
    /**
     * 根据type 查找业态id
     *
     * @param industryType
     * @return
     */
    Integer findIdByType(String industryType);

    @PostMapping("/industry-service/get-all")
    List<Industry> getAll();

    @PostMapping("/industry-service/get-by-code")
    Industry getByCode(@RequestPart("code") String code);

    @PostMapping("/industry-service/get-by-id")
    Industry getById(@RequestPart("id") Integer id);

    @PostMapping("/industry-service/list")
    List<Industry> list(@RequestPart("industryVO") IndustryVO industryVO);

}
